package tank;

/**
 * @author kc
 * @date 2021/4/19 0019 23:56
 */
public class TankMain {

    public static void main(String[] args) throws InterruptedException {
        TankFrame frame = new TankFrame();

        int tankCount = PropertyMgr.getInt("tankCount");

        for (int i = 0; i < tankCount; i++) {
            frame.tanks.add(new Tank(50 + i * 80, 200, Dir.DOWN, Group.BAD, true, frame));
        }

        while (true) {
            Thread.sleep(50);
            frame.repaint();
        }
    }
}
